import styles from './components.module.css';
// import React from 'react';
import { Spin } from 'antd';

function Loading({loading} : {loading: boolean}) {
    if (!loading) {
        return null;
    }else{
        return (
            <div className={styles.loading}>
                <Spin size = "large" tip = "搜索中..." />
            </div>
        )
    }
}

export {Loading};